import { BrowserModule, Title } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';

import { SharedModule } from './shared/shared.module';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { AppComponent } from './app.component';
import { appRoutes } from './app.routes';

import { LayoutNavComponent } from './shared/components/layout-nav';
import { NotFoundComponent } from './shared/components/not-found';

@NgModule({
  declarations: [
    AppComponent,
    NotFoundComponent,
    LayoutNavComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    NgbModule.forRoot(),
    RouterModule.forRoot(appRoutes),
    SharedModule.forRoot()
  ],
  exports: [
    AppComponent,
    NotFoundComponent
  ],
  providers: [Title],
  bootstrap: [AppComponent]
})
export class AppModule { }
